package com.zxing.practice.controller.paper;

import com.zxing.practice.entity.paper.BankStudentLinkEntity;
import com.zxing.practice.service.paper.StudentPaperService;
import com.zxing.practice.config.vo.AjaxResult;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/student/paper")
@RequiredArgsConstructor
public class StudentPaperController {

    private final StudentPaperService studentPaperService;

    @PostMapping("/generate")
    public AjaxResult generatePaper(@RequestBody BankStudentLinkEntity bank){
        return studentPaperService.generatePaper(bank);
    }
}
